import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import './http/http'
import 'element-ui/lib/theme-chalk/index.css'
import dataV from '@jiaminghi/data-view';
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
// 按需引入vue-awesome图标
import Icon from 'vue-awesome/components/Icon';
import 'vue-awesome/icons/chart-bar.js';
import 'vue-awesome/icons/chart-area.js';
import 'vue-awesome/icons/chart-pie.js';
import 'vue-awesome/icons/chart-line.js';
import 'vue-awesome/icons/align-left.js';
// 适配flex
import '@/common/flexible.js';
// 引入全局css
import './assets/scss/style.scss';
// 引入echart
import echarts from 'echarts'

// 导入axios
import axios from 'axios'
// 全局配置  挂载到vue的原型对象上  这样每个vue组件都可以通过this.$http 使用axios
Vue.prototype.$http = axios

// 全局注册图标
Vue.component('icon', Icon);

Vue.prototype.$echarts = echarts

Vue.use(Antd)

Vue.use(ElementUI)

Vue.use(dataV);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
